export interface SystemInitData {
  model_select: boolean;
  user: {
    id: string;
    avatar: string;
    username: string;
  };
  samples: string[];
  default_model_id?: string; // 添加默认模型ID字段
  cookie_pre?: string; // 添加cookie前缀字段
  tools?: { name: string; id: number }[]; // 新增工具列表字段
}

export interface UploadResponse {
  code: number;
  message: string;
  data: {
    id: number;
    url: string;
  }[] | {
    id: number;
    url: string;
  } | Record<string, never>; // 空对象
}

export interface ShareResponseData {
  jsApiList: string[];
  openTagList: string[];
  debug: boolean;
  url: string;
  nonceStr: string;
  timestamp: number;
  appId: string;
  signature: string;
  title: string;
  desc: string;
}

export interface ShareResponse {
  code: number;
  message: string;
  data: ShareResponseData;
}
